﻿using Abp.AutoMapper;
using AVIS.OutBound.BookOrders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.Orders.Dto
{
    /// <summary>
    /// 提交订单的请求参数
    /// </summary>
    [AutoMapTo(typeof(BookOrder), typeof(Order))]
    public class SubmitOrderInput
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        [Required]
        public string OrderId { get; set; }

        /// <summary>
        /// 订单号，修改订单时需要传入
        /// </summary>
        public string OrderNo { get; set; }

        #region 客户信息

        /// <summary>
        /// 客户的姓
        /// </summary>
        [Required]
        public string Surname { get; set; }

        /// <summary>
        /// 客户的名
        /// </summary>
        [Required]
        public string Firstname { get; set; }

        /// <summary>
        /// 客户的电话号码
        /// </summary>
        [Required]
        public string Telephone { get; set; }

        /// <summary>
        /// 客户的电子邮箱
        /// </summary>
        [Required]
        public string Email { get; set; }

        /// <summary>
        /// 常旅客协议名称
        /// </summary>
        public string FTNProgramme { get; set; }

        /// <summary>
        /// 常旅客号码
        /// </summary>
        public string FTNNumber { get; set; }

        #endregion

        /// <summary>
        /// 航班号
        /// </summary>
        public string FlightNumber { get; set; }

        /// <summary>
        /// AAN协议号，等同于IATA号
        /// </summary>
        public string AAN { get; set; }

        /// <summary>
        /// 用户选择的增值服务数据（结构：类型 + 数量，多个用“;”隔开）
        /// </summary>
        public string EquipList { get; set; }

        /// <summary>
        /// 用户选择的第三方增值服务（JSON结构： [{"type": "-1","productId": "45","productName": "美国WiFi(含夏威夷)","price": "35"}]）
        /// </summary>
        public string ThirdOrders { get; set; }
    }
}
